import {Component} from '@angular/core';
import {IonicPage, NavController} from 'ionic-angular';
import {CustomerProvider} from "../../../providers/customerProvider";
import {Customer} from "../../../models/Customer";
import {MyAccountEditPage} from "../my-account-edit/my-account-edit";
/**
 * Generated class for the MyAccountPage page.
 *
 * See http://ionicframework.com/docs/components/#navigation for more info
 * on Ionic pages and navigation.
 */
@IonicPage()
@Component({
  selector: 'page-my-account',
  templateUrl: 'my-account.html',
})
export class MyAccountPage {
  userInfo: Customer;

  constructor(public nav: NavController, public auth: CustomerProvider) {
  }


  ionViewDidLoad() {
    this.userInfo = this.auth.userInfo();

  }

  edit() {
    this.nav.push(MyAccountEditPage);
  }
}
